package com.lyt.springboot.diffHandler;

import com.lyt.springboot.diffEnum.ActionMethodEnum;
import org.springframework.stereotype.Component;

@Component
public class ByWalkActionHandler implements ActionHandler {
    @Override
    public String actionMethod() {
        return ActionMethodEnum.WALK.getMethod();
    }

    @Override
    public Object handler() {
        System.out.println("步行出行。。");
        return ActionMethodEnum.WALK.getDesc();
    }
}
